.class public Lcom/facebook/orca/auth/FacebookAuthorizeHelper;
.super Ljava/lang/Object;
.source "FacebookAuthorizeHelper.java"


# static fields
.field private static a:[Ljava/lang/String;


# instance fields
.field private final b:Landroid/app/Activity;

.field private final c:Lcom/facebook/android/Facebook;


# direct methods
.method static constructor <clinit>()V
    .locals 3

    .prologue
    .line 17
    const/4 v0, 0x2

    new-array v0, v0, [Ljava/lang/String;

    const/4 v1, 0x0

    const-string v2, "offline_access"

    aput-object v2, v0, v1

    const/4 v1, 0x1

    const-string v2, "email"

    aput-object v2, v0, v1

    sput-object v0, Lcom/facebook/orca/auth/FacebookAuthorizeHelper;->a:[Ljava/lang/String;

    return-void
.end method

.method public constructor <init>(Landroid/app/Activity;Lcom/facebook/android/Facebook;)V
    .locals 0
    .parameter
    .parameter
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation

    .prologue
    .line 26
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 27
    iput-object p1, p0, Lcom/facebook/orca/auth/FacebookAuthorizeHelper;->b:Landroid/app/Activity;

    .line 28
    iput-object p2, p0, Lcom/facebook/orca/auth/FacebookAuthorizeHelper;->c:Lcom/facebook/android/Facebook;

    .line 29
    return-void
.end method


# virtual methods
.method public a()Lcom/facebook/orca/auth/FacebookCredentials;
    .locals 4

    .prologue
    .line 40
    iget-object v0, p0, Lcom/facebook/orca/auth/FacebookAuthorizeHelper;->c:Lcom/facebook/android/Facebook;

    invoke-virtual {v0}, Lcom/facebook/android/Facebook;->b()Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_0

    .line 41
    const/4 v0, 0x0

    .line 43
    :goto_0
    return-object v0

    :cond_0
    new-instance v0, Lcom/facebook/orca/auth/FacebookCredentials;

    iget-object v1, p0, Lcom/facebook/orca/auth/FacebookAuthorizeHelper;->c:Lcom/facebook/android/Facebook;

    invoke-virtual {v1}, Lcom/facebook/android/Facebook;->b()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/facebook/orca/auth/FacebookAuthorizeHelper;->c:Lcom/facebook/android/Facebook;

    invoke-virtual {v2}, Lcom/facebook/android/Facebook;->c()J

    move-result-wide v2

    invoke-direct {v0, v1, v2, v3}, Lcom/facebook/orca/auth/FacebookCredentials;-><init>(Ljava/lang/String;J)V

    goto :goto_0
.end method

.method public a(IILandroid/content/Intent;)V
    .locals 1
    .parameter
    .parameter
    .parameter

    .prologue
    .line 47
    iget-object v0, p0, Lcom/facebook/orca/auth/FacebookAuthorizeHelper;->c:Lcom/facebook/android/Facebook;

    invoke-virtual {v0, p1, p2, p3}, Lcom/facebook/android/Facebook;->a(IILandroid/content/Intent;)V

    .line 48
    return-void
.end method

.method public a(Lcom/facebook/android/Facebook$DialogListener;)V
    .locals 3
    .parameter

    .prologue
    .line 32
    iget-object v0, p0, Lcom/facebook/orca/auth/FacebookAuthorizeHelper;->c:Lcom/facebook/android/Facebook;

    iget-object v1, p0, Lcom/facebook/orca/auth/FacebookAuthorizeHelper;->b:Landroid/app/Activity;

    sget-object v2, Lcom/facebook/orca/auth/FacebookAuthorizeHelper;->a:[Ljava/lang/String;

    invoke-virtual {v0, v1, v2, p1}, Lcom/facebook/android/Facebook;->a(Landroid/app/Activity;[Ljava/lang/String;Lcom/facebook/android/Facebook$DialogListener;)V

    .line 33
    return-void
.end method
